/**
 * Created by Administrator on 2016/5/7.
 */
const express = require('express');
const app = express();

app.get('/:name', function (req, res) {
    res.end(req.params.name);
});

app.get('/temp/:name', function (req, res) {
    var name = req.params.name;
    res.render('myname.ejs',
        {
            name: name
        });
    res.end();
})

app.listen(8080);

